from modelscope.hub.api import HubApi

YOUR_ACCESS_TOKEN = '6249a248-1a3e-4cca-b1b3-1f74e5e6fa9b'

api = HubApi()
api.login(YOUR_ACCESS_TOKEN)
api.push_model(
    model_id="GeorgeChia/Phi-3-HotPotQA-RFT", 
    model_dir="/GLOBALFS/nudt_dwfeng_1/FastChat/checkpoints-hotpot-Phi-3-RFT-gpt4o-iteration1/checkpoint-9" # 本地模型目录，要求目录中必须包含configuration.json
)
